package cn.lg.soar.system.biz.config;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Lazy;

import java.time.Duration;

/**
 * 服务的配置
 * @author luguoxiang
 * @date 2022/5/29
 * 开源项目：https://gitee.com/lgx1992/lg-soar 求star！请给我star！请帮我点个star！
 */
@Lazy
@Getter
@Setter
@ConfigurationProperties(value = "lg.sso.server")
public class SsoServerProps {

    /**
     * 开启单点登录服务端功能
     */
    private Boolean enabled;

    /**
     * 服务的访问token密钥
     */
    private String secret;

    /**
     * 服务的访问token 有效期
     */
    private Duration expire;

}
